import {PropsWithChildren} from "react";
import {View, Text, Image} from "@tarojs/components";
import Zan from '@/assets/imgs/zan.png';
import styles from './index.module.scss';

interface Props {
  avatar?: string;
  author?: string;
  content?: string;
}

export function Item (props: PropsWithChildren<Props>){

  return (
    <View className={styles.itemWrapper}>
      {/*<Image src={props.avatar} />*/}
      <View className={styles.avatar} />
      <View className={styles.content}>
        <View className={styles.header}>
          <View>
            <Text className={styles.author}>作者</Text>
            <Text className={styles.publishTime}>17小时前</Text>
          </View>
          <View className={styles.thumbsUp}>
            <Text>1066</Text>
            <Image src={Zan} />
          </View>
        </View>
        <View className={styles.comment}>
          作为一名大学老师，每次监考看着一水的海马体照片的考试信息都感觉在给一屋子明星监考。入考场核实学生身份时经常判若两人，感觉很容易发生替考的现象
        </View>
        {props.children}
      </View>
    </View>
  );
}
